package com.example.pei.ithinklearnt.present;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;

/**
 * Created by Pei on 2017/12/3.
 */

public interface RegisterTwoPresent {
    void chooseHeadFromCamera(int requestCode);  //从相机选择头像(不裁剪
    void chooseHeadFromAlbum (int requestCode);   //从相册选择头像(不裁剪

    void getPhotoAndCrop(Uri uri, int style,int requestCode);//得到从相册或者相机的照片并且开始裁剪
    void achieveAllPermissions(Activity activity,int requestCode);
    void openAlbum(int IMAGE_REQUEST_CODE);    //打开相册

    void CropCallback(Intent date);  //裁剪头像的回调

    void submit(); //注册
}
